﻿@model SimpleTaskManager.Domain.Entities.User

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this user?</h3>
<fieldset>
    <legend>@Html.DisplayFor(model => model.FirstName) @Html.DisplayFor(model => model.LastName)</legend>

    <table>
        <tr>
            <td>
                <fieldset>
                    <legend>Personal details</legend>

                    <div class="display-label">First Name</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.FirstName)
                    </div>
                    <br />

                    <div class="display-label">Last Name</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.LastName)
                    </div>
                    <br />
        
                    <div class="display-label">Date of birth</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.DateOfBirth)
                    </div>
                    <br />

                     <div class="display-label">Personal Identifier</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.PersonalIdentifier)
                    </div>
                    <br />

                    <div class="display-label">Login</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.Login)
                    </div>     
                </fieldset>

                 <fieldset>
                    <legend>Contact details</legend>
        
                    <div class="display-label">E-mail</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.Email)
                    </div>
                    <br />

                    <div class="display-label">Phone</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.Phone)
                    </div>
                    <br />

                    <div class="display-label">Address</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.Address)
                        <br />
                        @Html.DisplayFor(model => model.City), @Html.DisplayFor(model => model.ZIP)
                        <br />
                        @Html.DisplayFor(model => model.Country)
                    </div>

                </fieldset>
            </td>
            <td>
                <fieldset>
                    <legend>Company details</legend>
                    <div class="display-label">Role</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.Role)
                    </div>
                    <br />
                    <div class="display-label">Position</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.Position)
                    </div>
                    <br />

                    <div class="display-label">With us since</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.CreationDate)
                    </div>
                    <br />

                    <div class="display-label">Status</div>
                    <div class="display-field">
                        @Html.DisplayFor(model => model.Status)
                    </div>
                    <br />
                </fieldset>

                <fieldset>
                    <legend>Skills</legend>
                    @foreach (var skill in Model.User_Skills)
                    {
                        Html.Display(skill.ToString() + ", ");   
                    }

                </fieldset>

                <fieldset>
                    <legend>Current tasks</legend>
                    <!-- read only -->
                </fieldset>
            
            </td>
        </tr>
    </table>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
